package com.hzgj.soa.service;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Administ
 * rator on 2016/8/11.
 */
@Getter
@Setter
@Builder
public class User implements Serializable {
    //    private Address address;
    @Protobuf(fieldType = FieldType.INT32, order = 4)
    public int age;
    @Protobuf(fieldType = FieldType.STRING, order = 1)
    private String name;
    @Protobuf(fieldType = FieldType.STRING, order = 2)
    private String pwd;
    @Protobuf(fieldType = FieldType.STRING, order = 3)
    private String capt;
    @Protobuf(fieldType = FieldType.INT64, order = 5)
    private long sex;
}
